package aop;

public class ConfigBean {
	private boolean flag = false;
	private boolean useAround = false;

	public void before() {
		System.err.println("前置消息");
	}

	public void after() {
		System.err.println("后置消息");
	}

	public void afterReturn() {
		System.err.println("正常返回后消息");
	}

	public void afterThrowing() {
		System.err.println("返回后消息");
	}

	public Object around() {
		System.err.println("环绕通知");
		return null;

	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public boolean isUseAround() {
		return useAround;
	}

	public void setUseAround(boolean useAround) {
		this.useAround = useAround;
	}

}
